package com.cloud.advance.openandclose.imp;


/*
  通过继承实现方法实现开闭原则
 */
public class AreaExt extends CalculationArea {

    public final static double π = 3.14159D;

    @Override
    public double circle(double r) {
        return π * r * r;
    }
}
